<template>
  <div class="mod-config">
    <table-view ref="view"
                :searchAttrs="searchAttrs"
                :primaryKey="primaryKey"
                :listApiName="listApiName"
                :deleteApiName="deleteApiName"
                :saveAuthName="saveAuthName"
                :deleteAuthName="deleteAuthName"
                :showAttrs="showAttrs"
    >
    </table-view>
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
  </div>
</template>


<script>
  import tableView from '@/components/tableView'
  import basicMixins from '@/utils/commonViewMixins'
  import AddOrUpdate from './losslightbottleinfo-add-or-update'

  export default {
    mixins: [basicMixins],
    data() {
      return {
        primaryKey: 'id',
        listApiName: 'lossApi/listLossLightBottleInfoList',
        deleteApiName: 'lossApi/deleteLossLightBottleInfo',
        saveAuthName: 'loss:losslightbottleinfo:save',
        deleteAuthName: 'loss:losslightbottleinfo:delete',
        searchAttrs: {},
        showAttrs: {
          orderNo: {
            label: "订单"
          },
          clientName: {
            label: "客户"
          },
          productNo: {
            label: "产品名称"
          },
          productWeight:{
            label: "产品克重"
          },
          lossNumber: {
            label: "损耗数量"
          },
          createTime:{
            label: "时间"
          },
          remark: {
            label: "备注"
          },
          status: {
            label: "状态"
          }
        }
      }
    },
    components: {
      tableView,
      AddOrUpdate
    }
  }
</script>
